include_directories(${CMAKE_CURRENT_BINARY_DIR})
set(	kdvdcreator_SRCS
		main.cpp
		mainwindow.cpp
		kdcfilefactory.cpp
		kdcmainwindowframe.cpp
		kdcconfig.cpp
		kdcconfigdialog.cpp
		kdcgeneralconfigpage.cpp
		kdcpluginsconfigpage.cpp
		kdcstatusbar.cpp
		infolabel.cpp
		kdcapplicationinterfaceimpl.cpp
	)

kde4_add_kcfg_files( kdvdcreator_SRCS kdcconfig.kcfgc )

qt4_automoc(${kdvdcreator_SRCS})
kde4_add_executable(kdvdcreator ${kdvdcreator_SRCS})
target_link_libraries(kdvdcreator kdclibgui kdclibcore ${KDE4_KDEUI_LIBS} ${KDE4_KIO_LIBS} ${KDE4_KUTILS_LIBS} )
install(TARGETS kdvdcreator DESTINATION ${BIN_INSTALL_DIR} )

install( FILES kdvdcreator.rc  DESTINATION  ${DATA_INSTALL_DIR}/kdvdcreator )
install(FILES kdcconfig.kcfg  DESTINATION  ${KCFG_INSTALL_DIR} )
install( FILES kdvdcreator.desktop  DESTINATION ${XDG_APPS_INSTALL_DIR} )